﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Microsoft.WindowsAzure.ServiceRuntime;
using HelloService;

namespace HelloService
{
    /// <summary>
    /// WCF Hello service implementation
    /// </summary>
    public class HellloService : IHellloService
    {
        /// <summary>
        /// Return the current Role name of WorkerRoles
        /// </summary>
        /// <returns></returns>
        public string RoleName()
        {
            return RoleEnvironment.CurrentRoleInstance.Id;
        }
    }
}
